package com.k9sv.dao;

import java.io.Serializable;
import java.util.List;

public interface IBaseDao {

	<T> T save(T paramT) throws Exception;

	<T> T getByClassId(Class<? extends T> clazz, Serializable id)
			throws Exception;;

	<T> void delete(T entity) throws Exception;
	
	<T> void merge(T entity) throws Exception;

	<T> void update(T entity) throws Exception;
	
	<T> List<T> query(String query, Object[] values, int start, int size) throws Exception;
	
	Object getCount(String where, Object[] values)throws Exception;
}
